home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups-pdf.postrm < prev    next >
Text File  |  2009-10-21  |  602b  |  35 lines

  1. #!/bin/sh
  2. # postrm script for cups-pdf
  3.  
  4. set -e
  5.  
  6. case "$1" in
  7.     purge|abort-install)
  8.         if [ -f /var/log/cups/cups-pdf_log ]
  9.         then
  10.                         rm /var/log/cups/cups-pdf_log*
  11.         fi
  12.         if [ -d /var/spool/cups-pdf ]
  13.         then
  14.             rm -rf /var/spool/cups-pdf
  15.         fi
  16.         # We need CUPS to reload its configuration to make the backend unavailable.
  17.         if [ -f /etc/init.d/cups ]
  18.         then
  19.             invoke-rc.d cups force-reload || invoke-rc.d cups start || true
  20.         fi
  21.     ;;
  22.  
  23.     abort-upgrade|upgrade|failed-upgrade|remove|disappear)
  24.     ;;
  25.  
  26.     *)
  27.         echo "postrm called with unknown argument \`$1'" >&2
  28.         exit 1
  29.     ;;
  30. esac
  31.  
  32.  
  33.  
  34. exit 0
  35.